package org.esprit.ocm.server.metier.ec2;

import org.esprit.ocm.dto.impl.AwsCredentialsDto;
import org.esprit.ocm.dto.impl.ServerDto;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.xerox.amazonws.ec2.Jec2;

@RemoteServiceRelativePath("BaseService.rpc")
public interface BaseService extends RemoteService {

	/**
	 * Initialize connection to the cloud server with ec2
	 * 
	 * @return Jec2 object to use in Cloud Services
	 */
	public Jec2 initConnection(ServerDto server, AwsCredentialsDto credentials);
}
